package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Courses1Mapper;
import com.ruoyi.system.domain.Courses1;
import com.ruoyi.system.service.ICourses1Service;

/**
 * 课程表_1Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
@Service
public class Courses1ServiceImpl implements ICourses1Service 
{
    @Autowired
    private Courses1Mapper courses1Mapper;

    /**
     * 查询课程表_1
     * 
     * @param courseId 课程表_1主键
     * @return 课程表_1
     */
    @Override
    public Courses1 selectCourses1ByCourseId(Long courseId)
    {
        return courses1Mapper.selectCourses1ByCourseId(courseId);
    }

    /**
     * 查询课程表_1列表
     * 
     * @param courses1 课程表_1
     * @return 课程表_1
     */
    @Override
    public List<Courses1> selectCourses1List(Courses1 courses1)
    {
        return courses1Mapper.selectCourses1List(courses1);
    }

    /**
     * 新增课程表_1
     * 
     * @param courses1 课程表_1
     * @return 结果
     */
    @Override
    public int insertCourses1(Courses1 courses1)
    {
        return courses1Mapper.insertCourses1(courses1);
    }

    /**
     * 修改课程表_1
     * 
     * @param courses1 课程表_1
     * @return 结果
     */
    @Override
    public int updateCourses1(Courses1 courses1)
    {
        return courses1Mapper.updateCourses1(courses1);
    }

    /**
     * 批量删除课程表_1
     * 
     * @param courseIds 需要删除的课程表_1主键
     * @return 结果
     */
    @Override
    public int deleteCourses1ByCourseIds(Long[] courseIds)
    {
        return courses1Mapper.deleteCourses1ByCourseIds(courseIds);
    }

    /**
     * 删除课程表_1信息
     * 
     * @param courseId 课程表_1主键
     * @return 结果
     */
    @Override
    public int deleteCourses1ByCourseId(Long courseId)
    {
        return courses1Mapper.deleteCourses1ByCourseId(courseId);
    }
}
